package sctu.edu.java.year2016.team08.chenruixiu.day20160523.chapter7_2;

/**
 * 尝试编写一个矩形类，将长与宽座位矩形类的属性，在构造方法中将长、宽初始化，定义一个成员方法求此矩形的面积。
 * Created by Administrator on 2016/5/26.
 */
public class Area {
    public long length;
    public long wide;

    public Area(long length, long wide) {
        this.length = length;
        this.wide = wide;

    }

    void way() {
        long area = length * wide;
        System.out.println(area);


    }

}
